<extend name="public@base5"/>
<block name="main">
    <div class="wrap js-check-wrap">
        <ul class="nav nav-tabs">
            <li class="nav-item">
                <a class="nav-link active" href="#">展位管理</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" href="{:url('Store/add_booth',['type'=>$booth_type])}">添加展位</a>
            </li>
        </ul>
        <div class="card margin-top-20">
            <form class=" bg-white row row-cols-lg-auto gap-1 g-3 align-items-center" method="get"
                      action="{:url('booth',['bid'=>$booth_type])}">
                    <div class="col-12">
                        <input type="text" class="form-control" name="search"
                               value="{:input('request.search','')}" placeholder="订单号/商品名称">
                    </div>
                    <div class="col-12">
                        <input type="submit" class="btn btn-primary" value="{:lang('Search')}"/>
                        <a class="btn btn-danger" href="{:url('booth',['bid'=>$booth_type])}">{:lang('Clear')}</a>
                    </div>
                </form>
        </div>
        <table class="table table-hover table-bordered margin-top-20">
            <thead>
            <tr>
                <th width="50">ID</th>
                <th>展位名称</th>
                <th>展位类型</th>
                <th>藏品数量</th>
                <th>图标</th>
                <th>修改时间</th>
                <th width="120">{:lang('ACTIONS')}</th>
            </tr>
            </thead>
            <tbody>
            
            <foreach name="items" item="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>
                        {$vo.booth_name}
                    </td>
                    <td>{$vo.button_name}</td>
                   
                    <td>{$vo.num}</td>
                    <td>
                        <img src="{:cmf_get_image_preview_url($vo['icon'])}" width="120px" height="100px">
                     </td>
                     <td>
                        {:date('Y-m-d H:i:s',$vo['update_time'])}
                    </td>
                    <td>
                        <a class="btn btn-xs btn-primary" href='{:url("store/edit_booth",array("id"=>$vo["id"]))}'
                           title="{:lang('EDIT')}" data-toggle="tooltip">
                            <i class="fa fa-edit fa-fw"></i>编辑
                        </a>
                        <a class="btn btn-xs btn-primary" href="{:url('Store/subindex',['type'=>$vo.id])}"
                           title="藏品管理" data-toggle="tooltip">
                            <i class="fa fa-tags fa-fw"></i>藏品管理
                        </a>
                        
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <div class="pagination">{$page}</div>
    </div>
</block>
